package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Distract;
import com.ruoyi.system.domain.Users;
import com.ruoyi.system.mapper.DistractMapper;
import com.ruoyi.system.service.DistractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DistractServiceImpl implements DistractService {

    @Autowired
    DistractMapper distractMapper;


    @Override
    public List<Users> getPublicFacilityOptions() {
        return distractMapper.getPublicFacilityOptions();
    }

    @Override
    public List<Users> getPrivateFacilityOptions() {
        return distractMapper.getPrivateFacilityOptions();
    }

    @Override
    public List<Users> getManagerOptions() {
        return distractMapper.getManagerOptions();
    }

    @Override
    public int addHouse(Distract distract) {
        return distractMapper.addHouse(distract);
    }

    @Override
    public int addHouseStyle(Distract distract) {
        return distractMapper.addHouseStyle(distract);
    }

    @Override
    public int addHouseUrl(Distract distract) {
        return distractMapper.addHouseUrl(distract);
    }

    @Override
    public int addRoomUrl(String frontCover,String roomId) {
        return distractMapper.addRoomUrl(frontCover,roomId);
    }

    @Override
    public String[] selectRoomId(String houseId) {
        return distractMapper.selectRoomId(houseId);
    }
}
